package com.ziyun.erp.common.e.member;

import com.ziyun.erp.common.e.BaseEnum;

/**
 * 用户类型枚举类
 */

public enum UserTypeEnum implements BaseEnum {
    COMMON("common", "一般用户",0),
    SHOP("shop", "图文店用户",1),
    COMPANY("company", "企业用户",2),
    DESIGNER("designer", "设计师",3),
//    SUPPLIER("supplier", "供应商",4),
    POP("pop", "供应商",5),
    ;

    private Integer id;
    private String code;
    private String describe;

    UserTypeEnum(String code, String describe,Integer id) {
        this.code = code;
        this.describe = describe;
        this.id=id;
    }




    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return code;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
